/*
 * @Description: 技术
 * @Author: Liu Zhiwang
 * @Date: 2021-08-24 16:41:55
 * @LastEditTime: 2021-08-24 16:45:31
 * @LastEditors: Liu Zhiwang
 */
import request from '@/utils/request';

export function getListPage(query) {
  return request({
    url: '/basic/thRegulations/',
    method: 'GET',
    params: query
  });
}

export function updateData(query) {
  return request({
    url: '/basic/thRegulations/',
    method: 'POST',
    data: query
  });
}

export function deleteData(query) {
  return request({
    url: `/basic/thRegulations/${query}`,
    method: 'DELETE'
  });
}

export function getListTree(query) {
  return request({
    url: '/sysm/dept/listTree',
    method: 'get',
    params: query
  });
}

export function getListByTypeCode(query) {
  return request({
    url: '/sysm/commonDict/listByTypeCode',
    method: 'get',
    params: query
  });
}
